package com.dms.modules.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 敏感词DTO
 */
@Data
@ApiModel(value = "AdminSensitiveWordDTO", description = "敏感词DTO")
public class AdminSensitiveWordDTO {

    @ApiModelProperty("敏感词ID")
    private Long id;

    @ApiModelProperty(value = "敏感词", required = true)
    @NotBlank(message = "敏感词不能为空")
    private String word;

    @ApiModelProperty(value = "敏感词类型：1-政治 2-色情 3-暴力 4-广告 5-其他", required = true)
    @NotNull(message = "敏感词类型不能为空")
    private Integer type;

    @ApiModelProperty("备注")
    private String remark;
} 